package com.hsoft.zhxy.app.common.model.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.util.Date;

@Data
@TableName("JCQX_YH")
public class YhglEntity implements Serializable {
    private static final long serialVersionUID = 3101381831420490466L;

    @NotBlank(message = "用户ID不能为空")
    @JsonSerialize(using = ToStringSerializer.class)
    @TableId(value="yhid",type = IdType.ASSIGN_ID)
    private String yhid;

    @NotBlank(message = "姓名不能为空")
    private String xm;

    private String mm;

    private String sjh;

    private String dzyx;

    private String sfms;

    @NotBlank(message = "是否自建不能为空")
    private Long sfzj;

    @NotBlank(message = "可登录方式不能为空")
    private String kdlfs;

    private Long yhzt;

    private String sjlybz;

    private String bz;

    private String cjr;

    @JSONField(format ="yyyy-MM-dd HH:mm:ss") // 格式化
    private Date cjsj;

    private String bgr;

    @JSONField(format ="yyyy-MM-dd HH:mm:ss") // 格式化
    private Date bgsj;


}
